package com.nanrui.mutualinductor.data;


import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

public class Device
        implements Parcelable {
    public static final Parcelable.Creator<Device> CREATOR = new Parcelable.Creator() {
        public Device createFromParcel(Parcel paramAnonymousParcel) {
            return new Device(paramAnonymousParcel);
        }

        public Device[] newArray(int paramAnonymousInt) {
            return new Device[paramAnonymousInt];
        }
    };
    private static final long serialVersionUID = 3966554125214039771L;
    private String assetNo;
    private String barCode;
    private String belongDept;
    private int id;
    private long madeDate;
    private String madeNo;
    private String manufacturer;
    private String modelCode;
    private String prOrg;
    private ArrayList<Record> recordList;
    private String sortCode;
    private String typeCode;
    private String wiringMode;

    public Device() {
    }

    protected Device(Parcel paramParcel) {
        this.id = paramParcel.readInt();
        this.prOrg = paramParcel.readString();
        this.belongDept = paramParcel.readString();
        this.barCode = paramParcel.readString();
        this.assetNo = paramParcel.readString();
        this.madeNo = paramParcel.readString();
        this.sortCode = paramParcel.readString();
        this.typeCode = paramParcel.readString();
        this.modelCode = paramParcel.readString();
        this.wiringMode = paramParcel.readString();
        this.manufacturer = paramParcel.readString();
        this.madeDate = paramParcel.readLong();
        this.recordList = paramParcel.readArrayList(Record.class.getClassLoader());
    }

    public static long getSerialVersionUID() {
        return 3966554125214039771L;
    }

    public int describeContents() {
        return 0;
    }

    public String getAssetNo() {
        return this.assetNo;
    }

    public String getBarCode() {
        return this.barCode;
    }

    public String getBelongDept() {
        return this.belongDept;
    }

    public int getId() {
        return this.id;
    }

    public long getMadeDate() {
        return this.madeDate;
    }

    public String getMadeNo() {
        return this.madeNo;
    }

    public String getManufacturer() {
        return this.manufacturer;
    }

    public String getModelCode() {
        return this.modelCode;
    }

    public String getPrOrg() {
        return this.prOrg;
    }

    public ArrayList<Record> getRecordList() {
        return this.recordList;
    }

    public String getSortCode() {
        return this.sortCode;
    }

    public String getTypeCode() {
        return this.typeCode;
    }

    public String getWiringMode() {
        return this.wiringMode;
    }

    public void setAssetNo(String paramString) {
        this.assetNo = paramString;
    }

    public void setBarCode(String paramString) {
        this.barCode = paramString;
    }

    public void setBelongDept(String paramString) {
        this.belongDept = paramString;
    }

    public void setId(int paramInt) {
        this.id = paramInt;
    }

    public void setMadeDate(long paramLong) {
        this.madeDate = paramLong;
    }

    public void setMadeNo(String paramString) {
        this.madeNo = paramString;
    }

    public void setManufacturer(String paramString) {
        this.manufacturer = paramString;
    }

    public void setModelCode(String paramString) {
        this.modelCode = paramString;
    }

    public void setPrOrg(String paramString) {
        this.prOrg = paramString;
    }

    public void setRecordList(ArrayList<Record> paramArrayList) {
        this.recordList = paramArrayList;
    }

    public void setSortCode(String paramString) {
        this.sortCode = paramString;
    }

    public void setTypeCode(String paramString) {
        this.typeCode = paramString;
    }

    public void setWiringMode(String paramString) {
        this.wiringMode = paramString;
    }

    public void writeToParcel(Parcel paramParcel, int paramInt) {
        paramParcel.writeInt(this.id);
        paramParcel.writeString(this.prOrg);
        paramParcel.writeString(this.belongDept);
        paramParcel.writeString(this.barCode);
        paramParcel.writeString(this.assetNo);
        paramParcel.writeString(this.madeNo);
        paramParcel.writeString(this.sortCode);
        paramParcel.writeString(this.typeCode);
        paramParcel.writeString(this.modelCode);
        paramParcel.writeString(this.wiringMode);
        paramParcel.writeString(this.manufacturer);
        paramParcel.writeLong(this.madeDate);
        paramParcel.writeList(this.recordList);
    }
}

